//
//  ViewController.m
//  asdfghjkl
//
//  Created by iD Student on 7/25/13.
//  Copyright (c) 2013 idstudent. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	NSURL *serverURL =[NSURL URLWithString: [[NSString alloc] initWithFormat:@"http://apps.tinytech.us/R7GNJI27I9/?Method=0x01"]];
    NSData *serverResponse = [NSData dataWithContentsOfURL:serverURL];
    
    NSError*error = nil;
    NSDictionary* json = [NSJSONSerialization JSONOBJECTWithData:serverResponseoptions:kNilOptions error:&error];
    NSArray *highScoresName= [jsonobjectForKey:@"Users"];
    NSArray*highScoresValue= [json objectForKey:@"Score"];
    
    NSString *myUserName= @"Otis Ahmed";
    int myHighScore=9002;
    
    NSURL *serverURL = [NSURL URLWithString: [[NSString alloc]] initWithFormat:@"http://apps.tinytech.usR7GNJI27I9/?Method=0x02&UserName=%@&Score=%d",myUserName, myHighScore];
    NSData *serverResponse= [NSDatadataWithContentsOfURL:tinyTechServer];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
